package com.demo2do.fms.admin.service.data.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.GenericDaoSupport;
import com.demo2do.fms.admin.service.data.VehicleFeatureService;
import com.demo2do.fms.entity.data.business.VehicleFeature;

/**
 *
 * @author Ark
 *
 */
@Service("vehicleFeatureService")
public class VehicleFeatureServiceImpl implements VehicleFeatureService {
    
    @Autowired
    private GenericDaoSupport genericDaoSupport;

    /* (non-Javadoc)
     * @see com.demo2do.fms.admin.service.data.VehicleFeatureService#listAll()
     */
    @SuppressWarnings("unchecked")
    public List<VehicleFeature> listAll() {
        String sentence = "FROM VehicleFeature WHERE disabled = false";
        return genericDaoSupport.searchForList(sentence);
    }

}
